//
// Created by 张闳 on 2021/12/3.
//

#ifndef LIBMCOMMON_THREADS_H
#define LIBMCOMMON_THREADS_H


#include <pthread.h>

int init_pthread_lock(pthread_mutex_t *pthread_lock);
int init_pthread_attr(pthread_attr_t *pattr, const int stack_size);

int create_work_threads(int *count, void *(*start_func)(void *), \
		void *arg, pthread_t *tids, const int stack_size);
int kill_work_threads(pthread_t *tids, const int count);

#endif //LIBMCOMMON_THREADS_H
